﻿using StructureMap.Configuration.DSL;
using WS.EKA.ServiceImpl;
using WS.EKA.ServiceInterface;
using WS.EKA.Utilities.Core;

namespace WS.EKA.Core.DI
{
    public class ServiceRegistry : Registry
    {
        public ServiceRegistry()
        {
            For<IServiceFactory>().Use<ServiceFactory>();
            For<IAccountService>().Use<AccountService>();
            For<IScreenAdapter>().Use<ScreenAdapter>();
            For<ISessionRepository>().Use<SessionRepository>();
            For<ICookieRepository>().Use<CookieRepository>();

            For<IProductCatagory>().Use<ProductCatagoryService>();
            For<IProduct>().Use<ProductService>();
            For<IProductComment>().Use<ProductService>();
            For<IBaskOrderLog>().Use<ProductService>();

            For<IOrder>().Use<OrderService>();
            For<IShoppingCart>().Use<ShoppingCartService>();
            For<ICollect>().Use<CollectService>();

            For<IPayment>().Use<PaymentService>();
            For<IDispatchMode>().Use<DispatchModeService>();
            For<IMemberAddress>().Use<MemberAddressService>();
            For<IMemberMessage>().Use<MemberMessageService>();
            For<IProductBrand>().Use<ProductBrandService>();
            For<IPromotion>().Use<PromotionService>();
            For<IRegion>().Use<RegionService>();
        }
    }
}
